<h1>Site Settings</h1>
<form action="index.php?mod=admin" method="post">
<table cellspacing="10" border="0">
<tr><td>Site Name</td><td><input type="text" name="sitename" value="{$config.sitename}" size="64" maxlength="128" /></td></tr>
<tr><td>Site Author</td><td><input type="text" name="siteauthor" value="{$config.siteauthor}" size="64" maxlength="64" /></td></tr>
<tr><td>Site URL</td><td><input type="text" name="siteURL" value="{$config.siteURL}" size="64" maxlength="255" /></td></tr>
<tr><td>Contact E-Mail</td><td><input type="text" name="sitecontact" value="{$config.sitecontact}" size="64" maxlength="255" /></td></tr>
<tr><td>Site Description</td><td><input type="text" name="sitedesc" value="{$config.sitedesc}" size="64" maxlength="255" /></td></tr>
<tr><td>Site Slogan</td><td><input type="text" name="siteslogan" value="{$config.siteslogan}" size="64" maxlength="128" /></td></tr>
<tr><td>Site Keywords</td><td><input type="text" name="sitekeywords" value="{$config.sitekeywords}" size="64" maxlength="128" /></td></tr>
<tr><td>Theme</td><td><select name="sitetheme">
{foreach from=$themelist item=v}
	{if is_dir("./themes/$v") && preg_match('/^([A-Z]|[a-z]|_)/',$v)}
		<option value="{$v}"{if $v eq $config.sitetheme} selected="selected"{/if}>{$v}</option>
    {/if}
{/foreach}
</select></td></tr>
<tr><td>WYSIWYG Editor</td><td>
{html_options name=editor values=$eOptions output=$eOptions selected=$config.editor}
</td></tr>
<tr><td>Google Feed URL</td><td><input type="text" name="googlefeed" value="{$config.googlefeed}" size="64" maxlength="255" /></td></tr>
<tr><td>Image Upload Dir</td><td><input type="text" name="imagedir" value="{$config.imagedir|default:$smarty.server.DOCUMENT_ROOT}" size="64" maxlength="255" /></td></tr>
<!-- tr><td>File Upload Dir</td><td><input type="text" name="filedir" value="{$config.uploadsdir}" size="64" maxlength="255" /></td></tr -->
<tr><td colspan="2"><hr /></td></tr>
<tr><td>phpBB3 Dir</td><td><input type="text" name="phpbbdir" id="phpbbpath" value="{$config.forumdir}" size="64" onkeyup="popTopic(this.value)" onchange="popTopic(this.value)" /></td></tr>
<tr><td>phpBB3 Forum</td><td><select name="phpbbtopic" id="phpbbtopic"></select></td></tr>
<tr><td>phpBB3 Thread Intro</td><td><textarea name="threadintro" cols="40">{$config.threadintro}</textarea><pre>%u = URL, %t = Title, %c = Content</pre></td></tr>
<tr><td colspan="2"><hr /></td></tr>
<tr><td colspan="2"><input type="submit" name="configsubmit" value="Save" /> <input type="submit" name="cancel" value="Cancel" /></td></tr>
</table>
</form>